package com.lagou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lagou.model.LagouAuthCode;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaohuzi
 * @since 2022-03-26
 */
public interface ILagouAuthCodeService extends IService<LagouAuthCode> {

    void addUserCode(String code,String email);

    int addUserToken(String token,String email);

    Integer validateCode(String email,String code);

    String getEmailByToken(String token);

}
